package org.jeecg.modules.activiti.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.activiti.entity.ActZProcessOrg;
import org.jeecg.modules.activiti.entity.ActZprocess;

import java.util.List;

/**
 * @Description: 流程定义扩展表
 * @Author: pmc
 * @Date: 2020-03-22
 * @Version: V1.0
 */
public interface IActZprocessService extends IService<ActZprocess> {

    List<ActZprocess> queryNewestProcess(String processKey);

    /**
     * 通过流程实例id查询
     * @param id
     * @return
     */
    List<ActZProcessOrg> selectByProcessId(String id);


    /**
     * 流程-任务节点审批通过
     * @param taskId 任务id
     * @param procInstId 流程实例id
     * @param assignees 下个节点审批人
     * @param priority 优先级
     * @param comment 意见评论
     * @param sendMessage 是否发送站内消息
     * @param sendSms 是否发送短信通知
     * @param sendEmail 是否发送邮件通知
     */
    void pass(String taskId, String procInstId,String procDefId, String assignees, Integer priority, String comment,
              Boolean sendMessage, Boolean sendSms, Boolean sendEmail);

}
